import request from '@/utils/request'
import axios from 'axios'
import {
  transformQueryCondition
} from '@/utils'
import qs from 'qs'

// 查询出差授权信息
export function getAuthData(appId) {
  return request({
    url: '/webservice/InterfaceByOa/getAuthList/' + appId,
    method: 'POST'
  })
}

// 查询新闻类信息
export function getNewsData(appId) {
    return request({
      url: '/webservice/InterfaceByOa/getNewsList/' + appId,
      method: 'POST'
    })
  }
  
  // 查询文件类信息
  export function getFilesData(appId) {
    return request({
        url: '/webservice/InterfaceByOa/getFilesList/' + appId,
        method: 'POST'
    })
  }

  // 查询第三方系统待办
  export function getOtherDoList(appId) {
    return request({
        url: '/webservice/InterfaceByOa/getOtherToDoList',
        method: 'POST',
        params: {
          username: 'xiangmeng',
          todotype: '0',
          appId: appId
        }
    })
  }